﻿<Window x:Class="ElBruno.MerryChristmas.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="El Bruno - Merry Christmas"
        Height="580"
        Width="1024">
    <Grid x:Name="gridContent">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="660" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.Background>
            <ImageBrush ImageSource="/ElBruno.KinectViewer;component/Images/free-christmas-powerpoint-background-11.jpg" />
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="40" />
            <RowDefinition Height="*" />
            <RowDefinition Height="95*" />
        </Grid.RowDefinitions>
        <TextBlock Text="Merry Christmas"
                   Grid.Row="0"
                   Grid.Column="1"
                   FontSize="24"
                   Foreground="White"
                   FontFamily="Segoe UI Semilight"
                   FontWeight="Bold"
                   Margin="0"
                   HorizontalAlignment="Center" />
        <Canvas x:Name="canvasContent"
                Margin="10,10,0,0"
                Grid.Row="0"
                Grid.Column="0"
                Grid.RowSpan="2">
            <Grid Grid.Column="1"
                  Grid.Row="1">
                <!-- Rounded yellow border -->
                <Border BorderThickness="3"
                        BorderBrush="White"
                        CornerRadius="10"
                        Padding="2"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center">
                    <Grid>
                        <Border x:Name="mask"
                                Background="White"
                                CornerRadius="7" />
                        <StackPanel>
                            <StackPanel.OpacityMask>
                                <VisualBrush Visual="{Binding ElementName=mask}" />
                            </StackPanel.OpacityMask>
                            <Image x:Name="CameraViewer"
                                   Stretch="UniformToFill"
                                   MaxWidth="640"
                                   MaxHeight="480" />
                        </StackPanel>
                    </Grid>
                </Border>
            </Grid>
            <ContentControl x:Name="contentControlHat1">
                <Image x:Name="imageHat1"
                       Width="64"
                       Height="64"
                       Source="/ElBruno.KinectViewer;component/Images/santa-hat.png"
                       Visibility="Hidden" />
            </ContentControl>

            <ContentControl x:Name="contentControlHat2">
                <Image x:Name="imageHat2"
                       Width="64"
                       Height="64"
                       Visibility="Hidden"
                       Source="/ElBruno.MerryChristmas;component/Images/santa_hat.png" />
            </ContentControl>
        </Canvas>
        <Canvas x:Name="canvasSkeleton"
                Grid.Row="1"
                Grid.Column="1"
                Margin="10"
                Width="200"
                Height="350" />
        <TextBlock Grid.Column="2"
                   Grid.Row="2"
                   Height="23"
                   HorizontalAlignment="Left"
                   Margin="0,0,0,2"
                   Name="txtAbout"
                   Text="About ..."
                   VerticalAlignment="Bottom" />
    </Grid>
</Window>